package zuoye1;

public class Point {
	double x;
	double y;
	double z;
	
	public Point(double a, double b, double c) {
		  x = a;
		  y = b;
		  z = c;
	}
	
	public double getDistance(Point p) {
		return Math.sqrt((x - p.x) * (x - p.x) + (y - p.y) * (y - p.y)+(z-p.z)*(z-p.z));
	}
}
